-- GENERATED SPELL FOR [Crushridge Enforcer] --


function spell0_2256(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(9791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2256', 20268, 1)
end

function spell1_2256(pUnit, Event) --@Intimidation,n/a--
pUnit:FullCastSpellOnTarget(7093,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2256', 3000, 1)
end

function Sorts_2256(pUnit, Event)
local choix_sorts_2256 = math.random(0, 1)
if choix_sorts_2256 == 0 then
pUnit:RegisterEvent('spell0_2256', 1, 1)
end
if choix_sorts_2256 == 1 then
pUnit:RegisterEvent('spell1_2256', 1, 1)
end
end

function mob2256_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2256', math.random(1500, 3000), 1)
end

function mob2256_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2256_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2256_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2256, 1, 'mob2256_Action')
RegisterUnitEvent(2256, 2, 'mob2256_Leave')
RegisterUnitEvent(2256, 3, 'mob2256_Kill')
RegisterUnitEvent(2256, 4, 'mob2256_Die')
